type Last<T extends any[]> = [undefined,...T] extends [infer First, ...infer Rest,infer Last]?Last:never;
